package com.eidos.blogs.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;


/**
 * @author ：Eidos
 * @date ：Created in 2020/12/9
 * @description：数据库操作类型枚举
 * @modified By：
 * @version: 1.0
 */
@Getter
@AllArgsConstructor
public enum SqlOperator {

    IN("in"),
    EQUAL("="),
    NOT_EQUAL("!="),
    GTE(">="),
    GT(">"),
    LTE("<="),
    LT("<");

    private String val;

    public static List<String> keys() {
        return Arrays.stream(SqlOperator.values()).map(SqlOperator::getVal).collect(Collectors.toList());
    }

}